import type { Metadata } from "next"; import Link from "next/link"; import { notFound } from "next/navigation"; import { AREAS, getArea } from "@/lib/catalog"; import { getFieldLessons } from "@/lib/lessons"; import { pageMetadata } from "@/lib/seo"; export const dynamicParams = false; export function generateStaticParams() { return AREAS.map((a) => ({ area: a.slug })); } type Props = { params: Promise<{ area: string }> }; export async function generateMetadata({ params }: Props): Promise { const area = getArea((await params).area); return area ? pageMetadata({ title: area.name, description: area.summary }) : {}; } export default async function AreaPage({ params }: Props) { const area = getArea((await params).area); if (!area) notFound(); return (

Home

{area.name}

{area.summary}

); }